<?php
/**
 * @deprecated Uz sa nepouziva
 * 
 * @author Radovan Dvorsky
 * @version 20100513
 */
require_once ('application/default/models/Db/Model/ModelAbstract.php');

class Db_Model_Block extends Db_Model_Abstract {
	
	
	protected $bid;
	protected $name;
	protected $subjects = array();
	protected $StOborys = array();
	
	
	/**
	 * @return the $bid
	 */
	public function getBid() {
		return $this->bid;
	}

	/**
	 * @return the $name
	 */
	public function getName() {
		return $this->name;
	}

	/**
	 * @param $bid the $bid to set
	 */
	public function setBid($bid) {
		$this->bid = $bid;
	}

	/**
	 * @param $name the $name to set
	 */
	public function setName($name) {
		$this->name = $name;
	}
	
	/**
	 * @return the $subjects
	 */
	public function getSubjects() {
		return $this->subjects;
	}

	/**
	 * @param $subjects the $subjects to set
	 */
	public function setSubjects($subjects) {
		$this->subjects = $subjects;
	}
	
	/**
	 * @return the $TTridys
	 */
	public function getStOborys() {
		return $this->StOborys;
	}

	/**
	 * @param $TTridys the $TTridys to set
	 */
	public function setStOborys($StOborys) {
		$this->StOborys = $StOborys;
	}
	
	public function addSubject(Db_Model_Subject $subject){
		
		if(!$subject instanceof Db_Model_Subject){
			throw new Exception('$subject is not instance of Db_Model_Subject');
		}
		
		$this->subjects[] = $subject;
	}
	
	public function addStObory(Db_Model_StObory $stObor){
		
		if(!$stObor instanceof Db_Model_StObory){
			throw new Exception('$trida is not instance of Db_Model_StObory');
		}
		
		$this->StOborys[] = $stObor;
	}
}

?>